<!--{Atemplate tpl/header}-->
<script src="{Acan_path_js}/data/area3.js" type="text/javascript"></script>
<!--{eval echo $this->Ahtml_js_aurl();}-->
<script>
var columns = {"$this->model->table":$column_json};
var url_info = '$this->Amodr-info-';
var model = $listjson;
function checkall(value) {
	if(value=='0'){
		jQuery(".checkbox").attr("checked","checked");
		jQuery("#chkall_del").removeAttr("disabled","disabled");
	}
	if(value=='1'){
		jQuery(".checkbox").removeAttr("checked","checked");
		jQuery("#chkall_del").attr("disabled","disabled");
	}
	if(value=='auth'){
		var chkall = jQuery("input:checked").val();
		if(chkall == null){
			alert('请先选择');
			return false;
		}else{
			return true;
		}
	}
}
//var Awform = new Apps.form('alogs','Awform',{'add':{width:640,height:'auto'}},columns.$this->model->table);
var Asl;
var obj = {1:{'name':'province'},2:{'name':'city'},3:{'name':'dist'}};
jQuery(document).ready(function(){
	Asl = new Apps.sl("#Aarea",'Asl',obj,Acan.area,$area_val);
});
</script>

<form action="" method="get" class="-main_top">
	<input type="button" value="栏目设置" onclick="Awform.column()"/>
	状态：
	<!--{form 'select','status',$status,'',$post[status]}--> 
	<span id="Aarea">
	</span>
	<select name="sop">
		<option value="">模糊查询</option>
		<!--{loop $column_sop $key $val}-->
		<option value="$key" <!--{if $key==$post[sop]}-->selected="selected"<!--{/if}-->>$val</option>
		<!--{/loop}-->
	</select>
	<input type="text" name="search" value="$post[search]" size="20"/>
	<select name="sop2">
		<option value="">模糊查询</option>
		<!--{loop $column_sop $key $val}-->
		<option value="$key" <!--{if $key==$post[sop2]}-->selected="selected"<!--{/if}-->>$val</option>
		<!--{/loop}-->
	</select>
	<input type="text" name="search2" value="$post[search2]" size="20"/>
	<input type="submit" value="搜索">
</form>
<div class="_data_column dis_none">
	<div class="_list">$column_html</div>
	<input type="submit" value="确定"/>
</div>
<div class="-main_list">
<form action="" method="POST">
<table class="-table">
	<tr>
		<th width="50"><b><a href="$page->theurl-aorder-id,$pages->neworder$pages->other">ID</a><br></b></th>
		<th width="50"><b><a href="$page->theurl-aorder-name,$pages->neworder$pages->other">名称</a><br></b></th>
		<th width="100"><b><a href="$page->theurl-aorder-phone,$pages->neworder$pages->other">手机</a><br></b></th>
		<th width="100"><b><a href="$page->theurl-aorder-tel,$pages->neworder$pages->other">电话</a><br></b></th>
		<th width="100"><b><a href="$page->theurl-aorder-province,$pages->neworder$pages->other">省</a><br></b></th>
		<th width="100"><b><a href="$page->theurl-aorder-city,$pages->neworder$pages->other">市</a><br></b></th>
		<th width="100"><b><a href="$page->theurl-aorder-dist,$pages->neworder$pages->other">区</a><br></b></th>
		<th width=""><b><a href="$page->theurl-aorder-address,$pages->neworder$pages->other">地址</a><br></b></th>
		<th width="50"><b><a href="$page->theurl-aorder-type,$pages->neworder$pages->other">类型</a><br></b></th>
		<th width="50"><b><a href="$page->theurl-aorder-status,$pages->neworder$pages->other">状态</a><br></b></th>
		<th width="100"><b>管理</b></th>
	</tr>
<!--{loop $list $key $val}-->
<!--{eval
$mid = $val->$key_name;
}-->
	<tr>
		<td><p>$val->id</p></td>
		<td><p>$val->name</p></td>
		<td>
			<p><a href="$this->Aactr?sop=ip&search=$val->ip">$val->phone</a></p>
		</td>
		<td><p>$val->tel</p></td>
		<td><p>$val->province</p></td>
		<td><p>$val->city</p></td>
		<td><p>$val->dist</p></td>
		<td><p>$val->address</p></td>
		<td><p>$val->type</p></td>
		<td><p>$val->status</p></td>
		<td>
			<p><a href="">编辑</a></p>
			<p><a href="$this->Amodr-kuaidi">快递列表</a></p>
		</td>
	</tr>
<!--{/loop}-->
</table>
</form>
</div>
<!--{Atemplate alogs/nav}-->

<!--{Atemplate tpl/nofooter}-->